// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from "./store";/*导入vuex公共仓库*/

import BScroll from "better-scroll";
import ImgLoaded from "imagesloaded";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import YDUI from "vue-ydui";
//import 'vue-ydui/dist/ydui.rem.css';

import './assets/global.styl';
import './assets/webappREM.JS';

Vue.config.productionTip = false;
Vue.prototype.$BScroll = BScroll;//给this添加$BScroll
Vue.prototype.$ImgLoaded = ImgLoaded;

Vue.use(ElementUI);
Vue.use(YDUI);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App),
  store,//将仓库注入vue根实例
  components: { App },
  template: '<App/>'
});
